//
//  LNFoodsViewCell.m
//  LNDevelopExample
//
//  Created by wwww on 2018/9/29.
//  Copyright © 2018年 淘发现1iOS. All rights reserved.
//

#import "LNFoodsViewCell.h"
#import "LNFood.h"
@interface LNFoodsViewCell()

// 菜谱图片
@property (weak, nonatomic) IBOutlet UIImageView *img;
// 菜谱名称
@property (weak, nonatomic) IBOutlet UILabel *foodTitleLabel;
// 做过的人数
@property (weak, nonatomic) IBOutlet UILabel *numberLabel;
@end

@implementation LNFoodsViewCell

- (void)bindViewModel:( LNFood*)food{
    
    [self.img yy_setImageWithURL:[NSURL URLWithString:food.img] options:LNWebImageOptionAutomatic];
    self.foodTitleLabel.text = food.name;
    self.numberLabel.text = [NSString stringWithFormat:@"%@ 做过",food.number];
    
}

@end
